File_open(-__-)-{-file-__-}.sublime-snippet (289B)
1 <snippet> 2 <content><![CDATA[File.open(${1:"${2:path/to/file}"}${3/(^[rwab+]+$)|.*/(?1:, ")/}${3:w}${3/(^[rwab+]+$)|.*/(?1:")/}) { |${4:file}| $0 }]]></content> 3 <tabTrigger>File</tabTrigger> 4 <scope>source.ruby</scope> 5 <description>File.open("..") { |file| .. }</description> 6 </snippet>